<?php $guestbookObj=(new Zmsun\Copen\TopPackage("zm345.open.enterpr",new Zmsun\Copen\OpenLib($this->serviceManager->get("Database"),$this->serviceManager->get("DBTablePrefix"))))->guestbook;$errorStr='';$filter=['ids'=>['filter'=>FILTER_SANITIZE_STRING,'flags'=>FILTER_FORCE_ARRAY]];if(!$data=filter_input_array(INPUT_POST,$filter)){$errorStr='提交的数据错误';}elseif($data['ids']){$relyDel=$guestbookObj->guestbooksReplyDelete;$stat=$relyDel->setIds($data['ids'])->exec();if($stat['status']=='error'){$errorStr=$stat['error_msg'];}}if($errorStr){$result=['status'=>'error','info'=>$errorStr];}else{$result=['status'=>'ok','info'=>''];}echo json_encode($result);?>